package com.basic.business.model.dto;

import com.basic.business.common.config.ValidationGroups;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;


/**
 * 登录账号 和 角色关系表(SysAccountRoleRel)实体类
 *
 * @author huage
 * @since 2021-07-21 14:21:28
 */
@ApiModel("SysAccountRoleRelDto")
@Data
public class SysAccountRoleRelDto implements Serializable {

    private static final long serialVersionUID = -15958528151468676L;

    @ApiModelProperty(value = "$column.comment")
    @NotNull(groups = {ValidationGroups.Update.class, ValidationGroups.Delete.class})
    @Min(value = 1, groups = {ValidationGroups.Update.class, ValidationGroups.Delete.class})
    private Integer id;

    @ApiModelProperty(value = "login_account 中的login_id")
    private String loginId;

    @ApiModelProperty(value = "角色id")
    private String roleId;

}
